package cn.yaboya.system.mapper;

import cn.yaboya.system.domain.Role;
import cn.yaboya.basic.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yaboya
 * @since 2022-07-11
 */
public interface RoleMapper extends BaseMapper<Role> {

    void removeRoleMenu(Long id);

    void removePermission(Long id);

    void addRoleMenu(@Param("rid") Long id, @Param("menus")List<Long> menus);

    void addPermission(@Param("rid")Long id, @Param("permissions")List<Long> permission);
}
